//
//  Person.m
//  copy
//
//  Created by admin on 2019/8/9.
//  Copyright © 2019 猫爷爷的酱醋茶. All rights reserved.
//

#import "Person.h"

@implementation Person

- (nonnull id)copyWithZone:(nullable NSZone *)zone
{
    //如果需要深拷贝
    Person *person = [Person new];
    person.name = _name;
    person.age = _age;
    
    return person;
    
    //如果需要浅拷贝
    //return self;
}

@end
